import request from '@/utils/request'

// 查询产品库列表
export function listGoodshouse(query) {
  return request({
    url: '/system/goodshouse/list',
    method: 'get',
    params: query
  })
}

// 查询产品库详细
export function getGoodshouse(sysGoodshouseid) {
  return request({
    url: '/system/goodshouse/' + sysGoodshouseid,
    method: 'get'
  })
}

// 新增产品库
export function addGoodshouse(data) {
  return request({
    url: '/system/goodshouse',
    method: 'post',
    data: data
  })
}

// 修改产品库
export function updateGoodshouse(data) {
  return request({
    url: '/system/goodshouse',
    method: 'put',
    data: data
  })
}

// 删除产品库
export function delGoodshouse(sysGoodshouseid) {
  return request({
    url: '/system/goodshouse/' + sysGoodshouseid,
    method: 'delete'
  })
}

// 导出产品库
export function exportGoodshouse(query) {
  return request({
    url: '/system/goodshouse/export',
    method: 'get',
    params: query
  })
}